package com.wsj.message_server.utils;


import com.wsj.message_server.entity.FFResponse;

public class ResponseUtil {

    public static final int querySuccessCode = 200;

    public static final int queryNotMoreCode = 201;

    public static final int queryEmptyCode = -1;

    public static final int queryErrorCode = 500;

    public static final String regSuccess = "登录成功";

    public static final String regFail = "登录失败";

    public static final String querySuccess = "查询成功";

    public static final String notMoreData = "没有更多数据";

    public static final String notData = "没有数据";

    public static final String tryCatch = "服务异常";

    public static final String sendSuccessCode= "短信发送成功";

    public static final String sendErrorCode = "短信发送失败";



    public static FFResponse empty(int pageNum) {
        return new FFResponse(pageNum > 1 ? querySuccessCode : queryEmptyCode, pageNum > 1 ? notMoreData : notData, null, false, 0);
    }
}
